package cn.yuhe.system.service.impl;


import cn.yuhe.basic.query.BaseQuery;
import cn.yuhe.basic.service.impl.BaseServiceImpl;
import cn.yuhe.basic.utils.PageList;
import cn.yuhe.system.domain.DictionaryDetail;
import cn.yuhe.system.domain.DictionaryType;
import cn.yuhe.system.mapper.DictionaryDetailMapper;
import cn.yuhe.system.mapper.DictionaryTypeMapper;
import cn.yuhe.system.service.IDictionaryDetailService;
import cn.yuhe.system.service.IDictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* @Description: 部门业务层实现类
* @Author: Mr.She
* @Version: 1.0
* @Date:  2022/6/21 16:42
*/
@Service
// 只读事务
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class DictionaryDetailServiceImpl extends BaseServiceImpl<DictionaryDetail> implements IDictionaryDetailService {

//    @Autowired
//    private DictionaryDetailMapper dictionaryDetailMapper;
//
//    @Override
//    public PageList<DictionaryDetail> queryData(BaseQuery baseQuery) {
//
//        // 1.查询分页总条数
//        Integer total1 = dictionaryDetailMapper.queryCount(baseQuery);
//
//        // 2.查询当前页数据
//        List<DictionaryDetail> rows = dictionaryDetailMapper.queryData(baseQuery);
//
//        return new PageList<DictionaryDetail>(total1, rows);
//    }

}
